print("*********用户注册*********")
name = input("请输入用户名:")
password1 = input("请输入密码:")
password2 = input("请再次输入密码:")
if (password1 == password2):
    print("注册成功！")
else:
    print("两次输入的密码错误")
    exit()


print("*********用户登录*********")
name = input("请输入用户名:")
password3 = input("请输入密码:")
if (password1 == password3):
    print("登录成功！")
else:
    print("登录失败")
    exit()